COMMAND.COM
does not support sending
angle brackets to standard output, so you cannot generate HTML within
the DOS Shell. It also is very limmited in its control-flow and variable
handling. If you must use the DOS CGI interface, I strongly recommend that you use one of the very good alternative shells and interpreters that are available. The following section describes some of the better-known alternatives. Caveat: I do not work for any of the commercial shell suppliers. This is by no means an exhaustive list:
awk(1)
, but is much hairier.
This language is available for DOS, minus some Unix features
such as socket I/O and fork().
If you don't already know perl, and you don't want to use NDOS or
QBASIC, I suggest you have a good look at
Icon. For more information on perl, see
The Perl Programming Language
Icon is a high-level programming language with extensive facilities for processing strings and structures. Icon has several novel features, including expressions that may produce sequences of results, goal-directed evaluation that automatically searches for a successful result, and string scanning that allows operations on strings to be formulated at a high conceptual level.Icon emphasizes high-level string processing and a design philosophy that allows ease of programming and short, concise programs. Storage allocation and garbage collection are automatic in Icon, and there are few restrictions on the sizes of objects. Strings, lists, and other structures are created during program execution and their size does not need to be known when a program is written. Values are converted to expected types automatically; for example, numeral strings read in as input can be used in numerical computations without explicit conversion. Icon has an expression-based syntax with reserved words; in appearance, Icon programs resemble those of Pascal and C.
Although Icon has extensive facilities for processing strings and structures, it also has a full repertoire of computational facilities. It is suitable for a wide variety of applications. Some examples are:
- text analysis, editing, and formatting
- document formating
- artificial intelligence
- expert systems
- rapid prototyping
- symbolic mathematics
- text generation
- data laundry
Distribution kits, docs, and lots of other goodies are available from the University of Arizona Computer Science FTP Server at ftp://cs.arizona.edu/icon/
If you decide to use an interpreter such as icon, QBASIC or perl, see Wizard-Level Server Configuration Options, which documents some server configuration directives that should permit you to set up an execution environment suited to your needs.
Return to the
Scripting Overview